import http from '@/utils/http'
const env = import.meta.env
const BASE_URL = env.PROD ? `${env.VITE_API_BASE_URL}/channelAdmin` : '/channelAdmin'

/** @desc 订单列表 */
export function orderSearch(data: any) {
  return http.post(`${BASE_URL}/v1/order/search`, data)
}

export function platformsList(data: any) {
  return http.post(`${BASE_URL}/v1/platform/list`, data)
}

/** @desc 修改密码 */
// export function userChangePassword(data: any) {
//   const guard_name = localStorage.getItem('guard_name')
//   const guard = guard_name
//   return http.patch(`${BASE_URL}/user-change-password`, { ...data, guard_name, guard })
// }

export function getTargetUrl() {
  return ''
}

/** @desc 提现申请列表 */
export function withdrawalApplySearch(data: any) {
  return http.post(`${BASE_URL}/v1/settle/withdrawalApply/search`, data)
}
